"""The application's Globals object"""
from pylons import config

class Globals(object):
    """Globals acts as a container for objects available throughout the
    life of the application
    """

    def __init__(self, SIGNOUT_PART):
        """One instance of Globals is created during application
        initialization and is available during requests via the 'g'
        variable
        
        Arguments:
          - SIGNOUT_PART: the string used to recognize when to log out the user.
            Typically: 'signout' or 'logout'.
        """
        # If the SIGNOUT_PART is added at the end of an url, then sign out the 
        # user.
        self.SIGNOUT_PART = SIGNOUT_PART